package com.zjxf.base.common;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 表格数据返回类
 *
 * @author fhx
 * @date 2019/8/9 18:41
 */
@Getter
@Setter
public class RoPage<T> {

    private List<T> rows;

    private long total;

    private Integer pageNumber;

    private Integer pageSize;

    public RoPage(int pageNum, int pageSize, Long total, List<T> list) {
        this.rows = list;
        this.total = total;
        this.pageNumber = pageNum;
        this.pageSize = pageSize;
    }
}
